dojo.require("dojox.data.dom");
dojo.provide("com.otupia.Module");
com.otupia.Module = function()
{
	this.getAttr=function()
	{
		
		return {innerHTML:"<div class=\"warning\">模块属性未定义</div>"};
	};
	this.tag="div";
	this.init=function()
	{
		console.log("defualt init method called!!!");
	};
	this.render=function(containerId)
	{
		var insertNode = dojo.create(this.tag);
		dojo.attr(insertNode,this.getAttr());
		dojox.data.dom.replaceChildren(dojo.byId(containerId), insertNode);
		this.init();
	};
}